package com.data241210.SpringbootDemo.config;

import lombok.Data;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/*
读取redis的配置
 */
@Component
@ConfigurationProperties(prefix = "redis")
@Data
public class RedisConfig {
    private String database;
    private String host;
    private String port;
    private String passsword;
}
